<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
	request.setAttribute("ctx", basePath);
%>
<html>
<head>
    <title>登录</title>
    <style>.error{color:red;}</style>
</head>
<body>

<div class="error">${error}</div>
<form action="${ctx}/security/loginUser" method="post">
	<table cellpadding="0" cellspacing="0" class="percent-100">
		<tr>
			<td class="align-r width-80">用户名:</td>
			<td class="align-l">
				<input type="text" name="loginName"/>
			</td>
			<td class="align-r width-90">密码:</td>
			<td class="align-l">
				<input type="password" name="password"/>
			</td>
			<td class="align-r">自动登录:</td>
			<td class="align-l">
				<input type="checkbox" name="rememberMe" value="true"/>
			</td>
			<td class="align-l width-130">
				<input type="submit" value="登录"/>
			</td>
		</tr>
	</table>
</form>

</body>
</html>